package com.sugon.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author YuXD
 * @Version 1.0
 * @since 2022/12/21
 */
@ApiModel("模具换件是否匹配参数")
@Data
public class MoldReplacePartMatchParam implements Serializable {

    @NotEmpty(message = "模具型芯唯一码不能为空！")
    @ApiModelProperty("模具型芯唯一码")
    private String uniqueCode;

    @NotNull(message = "换件类型必填！")
    @ApiModelProperty(value = "换件类型：1维修换件，2异常换件", allowableValues = "1,2")
    private Integer methodType;

    @NotEmpty(message = "工单编码必填！")
    @ApiModelProperty("模具维修或维护工单编码")
    private String replaceCode;

}
